package com.xinhe.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDate;
import java.util.Date;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "adapay分销账户详情")
@Table(name = "tb_adapay_distributor")
public class AdapayDistributor {
    @Id
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("类型（1：个人用户，2：企业用户）")
    private Integer type;
    @ApiModelProperty("企业名称")
    private String name;
    @ApiModelProperty("省份编码")
    private String provCode;
    @ApiModelProperty("地区编码")
    private String areaCode;
    @ApiModelProperty("统一社会信用码")
    private String socialCreditCode;
    @ApiModelProperty("统一社会信用证有效期")
    private LocalDate socialCreditCodeExpires;
    @ApiModelProperty("经营范围")
    private String businessScope;
    @ApiModelProperty("法人姓名")
    private String legalPerson;
    @ApiModelProperty("法人身份证号码")
    private String legalCertId;
    @ApiModelProperty("法人身份证有效期")
    private LocalDate legalCertIdExpires;
    @ApiModelProperty("法人手机号")
    private String legalMp;
    @ApiModelProperty("企业地址")
    private String address;
    @ApiModelProperty("用户昵称")
    private String nickname;
    @ApiModelProperty("MALE：男，FEMALE：女，为空时表示未填写")
    private String gender;
    @ApiModelProperty("商户应用的app_id")
    private String appId;
    @ApiModelProperty("开户许可证")
    private String accountOpeningPermitPic;
    @ApiModelProperty("营业执照")
    private String licensePic;
    @ApiModelProperty("法人身份证正面")
    private String legalCertIdFrontPic;
    @ApiModelProperty("法人身份证反面")
    private String legalCertIdBackPic;
    @ApiModelProperty("创建信息")
    private String createResponse;
    @ApiModelProperty("创建回调信息")
    private String createCallbackResponse;
    @ApiModelProperty("审核状态（0：审核中，1：审核通过，2：审核失败）")
    private Integer checkStatus;
    @ApiModelProperty("审核失败描述")
    private String checkStatusRemark;

    @ApiModelProperty("标注")
    private String remark;
    @ApiModelProperty("版本数")
    private Integer version_num;
    @ApiModelProperty("是否被移除 0否 1是")
    private Integer removed;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty("创建人")
    private Long fCreateUserId;
    @ApiModelProperty("更新人")
    private Long fUpdateUserId;
}
